﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;

namespace LittleBee.Cells
{
	public abstract class ControlCell : Cell
	{
		//public ControlCell()
		//	: base()
		//{ }

		public ControlCell(Int64 iid)
			: base(iid)
		{

		}

		private static string strAttributes =
			@"[{
				pid:'ControlLinkMode',
				name:'Link Mode',
				description:'Link Mode to Controller',
				attribute:0xC0,
				type:'string',
				value:{ val : 'ControlLinkMode' },
				helper:{}
			},
			{
				pid:'RunControlInterval',
				name:'Interval',
				description:'Interval of RunControl',
				attribute:0x040,
				type:'int',
				value:{ val : 4 },
				helper:{}
			}]";

		public new static void GetCellSharedPointers(out JArray jaAttrs)
		{
			Cell.GetCellSharedPointers(out jaAttrs);
			jaAttrs.Merge(JArray.Parse(strAttributes));
		}
	}
}
